package cn.tedu.weibo.ex;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExceptionHandler {

//    @ExceptionHandler
//    @ResponseBody
//    public JsonResult handleServiceException(ServiceException e) {
//        return JsonResult.fail(ServiceCode.ERROR, "出错啦~~~！");
//    }
}
